package c7;
import c7.Circle;
public class Cone {

		private Circle c;
		private static double h;
		double pi = 3.14;

		Cone(double r, double H) {
			h = H;
			c = new Circle(r);
		}
		
		public double getArea1() {
			double s = c.getArea() + pi * c.r * Math.sqrt(h * h + c.r * c.r);
			return s;
		}

		public double getVolume1() {
			double V =  ( h * c.r*c.r*pi)/3;
			return V;
		}

	}